﻿@using Nop.Core;
@using Nop.Core.Infrastructure
@using Nop.Web.Framework.Themes
@using Nop.Web.Framework.UI
@{
    //add main CSS file
    var supportRtl = EngineContext.Current.Resolve<IWorkContext>().WorkingLanguage.Rtl;
    var themeName = EngineContext.Current.Resolve<IThemeContext>().WorkingThemeName;

    if (supportRtl)
    {
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/windalert.rtl.css",themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/windalert.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/styles.rtl.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/styles.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/hz-navbar-sidebar.rtl.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/bootstrap320/css/bootstrap.rtl.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/font-awosome-3/css/font-awesome.rtl.css", themeName));
    }
    else
    {
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/windalert.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/styles.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/hz-navbar-sidebar.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/bootstrap320/css/bootstrap.css", themeName));
        Html.AppendCssFileParts(string.Format("~/Themes/{0}/Content/font-awosome-3/css/font-awesome.css", themeName));
    }
    
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    ////add browser specific CSS files
    //var browser = Request.Browser;
    //if (browser.Browser == "IE" && browser.MajorVersion == 6)
    //{
    //    Html.AppendCssFileParts("~/Themes/DefaultClean/Content/ie6.css");
    //}
    //else if (browser.Browser == "IE" && browser.MajorVersion == 7)
    //{
    //    Html.AppendCssFileParts("~/Themes/DefaultClean/Content/ie7.css");
    //}
    
    
}